package com.appbee.user.server.guice;

import javax.inject.Singleton;

import com.appbee.core.server.dao.BaseDAO;
import com.appbee.user.server.dao.MemberDAO;
import com.appbee.user.server.model.Member;
import com.appbee.user.server.service.UserServiceProvider;
import com.appbee.user.server.service.UserServiceWrapper;
import com.google.appengine.api.users.UserService;
import com.google.inject.AbstractModule;
import com.google.inject.TypeLiteral;

public class UserModul extends AbstractModule
{

	@Override
	protected void configure()
	{
		bind(UserService.class).toProvider(UserServiceProvider.class);
		bind(UserServiceWrapper.class).in(Singleton.class);
		bind(new TypeLiteral<BaseDAO<Member>>(){}).to(MemberDAO.class);

	}

}
